Avoid a segfault when menus are re-shown under Wayland
authorMatthias Clasen <mclasen@redhat.com>
Mon, 16 Sep 2013 23:01:48 +0000 (19:01 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 16 Sep 2013 23:01:48 +0000 (19:01 -0400)
commit11ad337a29d84aa08b6087c95d0272112e6ce2cd
tree023e11fa5e5530a2783d9901ec4eef58dbe51fec
parent67f05b995f38d7424f53f347ce4a7edd527effa9
Avoid a segfault when menus are re-shown under Wayland

The surface is destroyed when we hide a window, but
gdk_window_set_opaque_region can be called before the window is
shown again, so we need to ensure the surface exits.

https://bugzilla.gnome.org/show_bug.cgi?id=707328
gdk/wayland/gdkwindow-wayland.c